/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dip.dipviolation;

/**
 *
 * @author given
 */
public class Cash {
    private double amountDue;    
    private ValidatePayment validate = new ValidatePayment();

    public void setAmount(double amountDue) {
        this.amountDue = amountDue;
        validate.setAmount(this.amountDue);
    }
    
    public double getAmount() {
        return amountDue;
    }
    
    public boolean checkPassed(){
        return validate.passed();
    }
}
